package com.kgc.itrip.response;

/**
 * 系统定义的返回码及对应的提示信息
 *
 * @author lrg on 2021/3/12
 * @since 1.0.0
 */
public enum ResultCode {
    HOTEL_FANG_NULL("100305","获取酒店房间床型失败"),
    HOTEL_IMAGE_NULL("100301","获取酒店房型图片失败"),
    HOTEL_IS_NULL_FOR("100302","酒店房型id不能为空"),
    SYSTEM_IS_ERROR("100304","系统异常"),
    HOTEL_IS_NULL_TAIN("1100303","酒店id不能为空,酒店入住及退房时间不能为空,入住时间不能大于退房时间"),
    HOTEL_IS_NULL_TWO("100213","酒店ID不能为空"),
    HOTEL_IS_IMAGE("100212","获取酒店图片失败"),
    HOTEL_IS_ERROR_ONE("10211","系统异常,获取失败"),
    HOTEL_IS_NULL_ONE("10210","酒店ID不能为空"),
    HOTEL_IS_ERROR("100214","系统异常,获取失败"),
    HOTEL_IS_NULL("100215","酒店ID不能为空"),
    TRADEAREA_CITYID_IS_NULL("10203","cityId不能为空"),
    TRADEAREA_QUERY_IS_ERRO("10204","系统异常,获取失败"),
    HOTELLABEL_QUERY_IS_ERRO("10205","系统异常,获取失败"),
    TYPE_IS_NULL("10201","type不能为空"),
    TYPE_IS_EXISTS("10202","系统异常，获取失败"),
    SYSTEM_IS_EXISTS("20001","系统异常,获取失败"),
    DESTINATION_IS_EXISTS("20002","目的地不能为空"),
    SYSTEM_IS_EXISTS1("20003","系统异常,获取失败"),
    CITY_IS_EXISTS("20004","城市id不能为空"),
    USER_IS_EXISTS("4000","该用户已经存在"),
    PARAM_IS_NULL("4001","请传入参数"),
    USERCODE_IS_NULL("4002","注册手机号不能空"),
    PASSWORD_IS_NULL("4003","密码不能为空"),
    CODE_IS_NULL("4004","验证码不能为空"),
    CODE_IS_TIMEOUT("4005","验证码过期"),
    CODE_IS_ERROR("4006","验证码错误"),
    EMAIL_IS_NULL("4007","注册邮箱号不能空"),
    LOGIN_USERCODE_IS_NULL("4008","用户名不能为空"),
    LOGIN_ERROR("4009","用户名或密码错误"),
    SUCCESS("0","执行成功"),
    ERROR("500","执行失败"),
    NOT_DATA_FOUNT("2000","数据没有找到"),
    NO_LOGIN("2001","用户没有登录"),
    TOKEN_TIMEOUT("100000 ","token失效，请重登录"),
    ADD_LINKUSER_ERROR("100411","新增常用联系人失败"),
    LINKUSER_IS_NULL("100412 ","不能提交空，请填写常用联系人信息"),
    OUT_LOGIN("2002","退出成功");
    private String code;
    private String msg;

    ResultCode(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
